package com.wuyou.programmingIdeas.Chapter9interface.part1.p1;

import com.wuyou.programmingIdeas.Chapter9interface.part1.Processor;

import java.util.Arrays;

/**
 * @Description
 * @Author 无忧
 * @Date 2023/12/19 21:12
 */
public class Splitter implements Processor {
    @Override
    public String name() {
        return getClass().getSimpleName();
    }

    public String process(Object input){
        return Arrays.toString(((String) input).split(" "));
    }
}
